package com.wanxi.file;

import java.io.File;
import java.io.IOException;

public class MyDelete {
    public static void main(String[] args) {
        String path = "";
        String child = "aa/a/d/s/d/aa//te/qer/fdsa/gg/ds.txt";
        File file = new File(path, child);
        System.out.println(file.getAbsolutePath());
        System.out.println(file.getPath());
        System.out.println(file.getParent());
        System.out.println(file.getName());
//        File dir=new File(file.getParent());
//        dir.mkdirs();
//        System.out.println(file.delete());;
//        if (file.isDirectory()) {
//            try {
//                file.createNewFile();
//            } catch (IOException e) {
//                e.printStackTrace();
//            }
//        } else {
//            System.out.println("文件目录不存在");
//        }


    }
}
